﻿
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ApplyCarManager.aspx.cs" Inherits="YhmOA.Integrated.Car.ApplyCarManager" %>

<%@ Register Assembly="YhmOAWebControls" Namespace="YhmOA.WebControls" TagPrefix="YhmOA" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>添加Integrated_Car_ApplyCar</title>
    <link type="text/css" rel="Stylesheet" href="../../Styles/Common.css" />
    <script type="text/javascript" src="../../Scripts/jquery-1.4.1.min.js"></script>
    <script type="text/javascript" src="../../Scripts/Common.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="MainRound"><div class="MainRoundContent"><div class="MainRoundContentW">
    <div class="MainBody">
		        <div class="Navigation">
            
        </div>
        <div style="border: 1px solid #93BEE2; border-bottom: 0px; padding: 8px 0 8px 8px;">
            <table>
                <tr>
                    <td><input class="Button" onclick="return RoleVerification('1','Dialog(\'ApplyCarForm.aspx\',\'ApplyCar--添加\',\'ApplyCar\',860,500);');" style="width:60px" type="text" value="添加" /></td>
                    <td><input class="Button" onclick="return RoleVerification('3','DeleteData();');" style="width:60px" type="text" value="删除" /></td>
                    <td>
                        <asp:TextBox ID="txt_Search" runat="server" notAjaxRender="notAjaxRender" CssClass="TextBoxSearch" onkeyup="Search();"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </div>
        <div style="overflow:auto;">
        <asp:GridView ID="gvShow" runat="server" EmptyDataText="暂无数据..." CssClass="Table">
            <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <input type="checkbox" id="allChecked" onclick="CheckedEvent('allChecked');" value="0" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <input  id="ItemChk" class="ItemChk" name="ItemChk" type="checkbox" value='<%# Eval("Id") %>' />
                    </ItemTemplate>
                    <ItemStyle Width="25px" CssClass="TdCenter"/>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate><a href="javascript:void(0);">操作</a></HeaderTemplate>
                    <ItemTemplate><a onclick="return RoleVerification('1','Dialog(\'ApplyCarForm.aspx\',\'ApplyCar--添加\',\'ApplyCar\',860,500);');" href="javascript:void(0);">查看</a>
                    <a onclick="return RoleVerification('2','Dialog(\'ApplyCarForm.aspx\',\'ApplyCar--修改\',\'ApplyCar\',860,500);');" href="javascript:void(0);">修改</a></ItemTemplate>
                    <ItemStyle Width="80px" CssClass="TdCenter"/>
                </asp:TemplateField>
                			 					 				 					 			<asp:TemplateField>
                    		<HeaderTemplate>
                        		<a onclick="Sort('ReturnTime');" href="javascript:void(0);">归还时间</a></HeaderTemplate>
                    		<ItemTemplate>
                        		<%#Eval("ReturnTime")%></ItemTemplate>
                        	<ItemStyle Width="160px"/>
                		</asp:TemplateField>
			 					 				 					 			<asp:TemplateField>
                    		<HeaderTemplate>
                        		<a onclick="Sort('ApproveStatus');" href="javascript:void(0);">审批状态</a></HeaderTemplate>
                    		<ItemTemplate>
                        		<%#Eval("ApproveStatus")%></ItemTemplate>
                        	<ItemStyle Width="160px"/>
                		</asp:TemplateField>
			 					 				 					 			<asp:TemplateField>
                    		<HeaderTemplate>
                        		<a onclick="Sort('Approver');" href="javascript:void(0);">审批人</a></HeaderTemplate>
                    		<ItemTemplate>
                        		<%#Eval("Approver")%></ItemTemplate>
                        	<ItemStyle Width="160px"/>
                		</asp:TemplateField>
			 					 				 					 			<asp:TemplateField>
                    		<HeaderTemplate>
                        		<a onclick="Sort('ApproveTime');" href="javascript:void(0);">审批时间</a></HeaderTemplate>
                    		<ItemTemplate>
                        		<%#Eval("ApproveTime")%></ItemTemplate>
                        	<ItemStyle Width="160px"/>
                		</asp:TemplateField>
			 					 				 					 			<asp:TemplateField>
                    		<HeaderTemplate>
                        		<a onclick="Sort('IsReturn');" href="javascript:void(0);">是否已归还:0,未归还;1:已归还</a></HeaderTemplate>
                    		<ItemTemplate>
                        		<%#Eval("IsReturn")%></ItemTemplate>
                        	<ItemStyle Width="160px"/>
                		</asp:TemplateField>
			 					 				 					 			<asp:TemplateField>
                    		<HeaderTemplate>
                        		<a onclick="Sort('SendMileage');" href="javascript:void(0);">出车时里程</a></HeaderTemplate>
                    		<ItemTemplate>
                        		<%#Eval("SendMileage")%></ItemTemplate>
                        	<ItemStyle Width="160px"/>
                		</asp:TemplateField>
			 					 				 					 			<asp:TemplateField>
                    		<HeaderTemplate>
                        		<a onclick="Sort('ReturnMileage');" href="javascript:void(0);">归还时里程</a></HeaderTemplate>
                    		<ItemTemplate>
                        		<%#Eval("ReturnMileage")%></ItemTemplate>
                        	<ItemStyle Width="160px"/>
                		</asp:TemplateField>
			 					 				 					 			<asp:TemplateField>
                    		<HeaderTemplate>
                        		<a onclick="Sort('CurrentMileage');" href="javascript:void(0);">本次行驶里程</a></HeaderTemplate>
                    		<ItemTemplate>
                        		<%#Eval("CurrentMileage")%></ItemTemplate>
                        	<ItemStyle Width="160px"/>
                		</asp:TemplateField>
			 					 				 					 			<asp:TemplateField>
                    		<HeaderTemplate>
                        		<a onclick="Sort('Direction');" href="javascript:void(0);">去向</a></HeaderTemplate>
                    		<ItemTemplate>
                        		<%#Eval("Direction")%></ItemTemplate>
                        	<ItemStyle Width="160px"/>
                		</asp:TemplateField>
			 					 				 					 			<asp:TemplateField>
                    		<HeaderTemplate>
                        		<a onclick="Sort('DrivingLine');" href="javascript:void(0);">行车线路</a></HeaderTemplate>
                    		<ItemTemplate>
                        		<%#Eval("DrivingLine")%></ItemTemplate>
                        	<ItemStyle Width="160px"/>
                		</asp:TemplateField>
			 					 				 					 			<asp:TemplateField>
                    		<HeaderTemplate>
                        		<a onclick="Sort('SN');" href="javascript:void(0);">编号</a></HeaderTemplate>
                    		<ItemTemplate>
                        		<%#Eval("SN")%></ItemTemplate>
                        	<ItemStyle Width="160px"/>
                		</asp:TemplateField>
			 					 				 					 			<asp:TemplateField>
                    		<HeaderTemplate>
                        		<a onclick="Sort('Remarks');" href="javascript:void(0);">备注</a></HeaderTemplate>
                    		<ItemTemplate>
                        		<%#Eval("Remarks")%></ItemTemplate>
                        	<ItemStyle Width="160px"/>
                		</asp:TemplateField>
			 					 				 					 			<asp:TemplateField>
                    		<HeaderTemplate>
                        		<a onclick="Sort('RegisterTime');" href="javascript:void(0);">登记时间</a></HeaderTemplate>
                    		<ItemTemplate>
                        		<%#Eval("RegisterTime")%></ItemTemplate>
                        	<ItemStyle Width="160px"/>
                		</asp:TemplateField>
			 					 				 					 			<asp:TemplateField>
                    		<HeaderTemplate>
                        		<a onclick="Sort('PlateNum');" href="javascript:void(0);">车牌号码</a></HeaderTemplate>
                    		<ItemTemplate>
                        		<%#Eval("PlateNum")%></ItemTemplate>
                        	<ItemStyle Width="160px"/>
                		</asp:TemplateField>
			 					 				 					 			<asp:TemplateField>
                    		<HeaderTemplate>
                        		<a onclick="Sort('UserName');" href="javascript:void(0);">用车人</a></HeaderTemplate>
                    		<ItemTemplate>
                        		<%#Eval("UserName")%></ItemTemplate>
                        	<ItemStyle Width="160px"/>
                		</asp:TemplateField>
			 					 				 					 			<asp:TemplateField>
                    		<HeaderTemplate>
                        		<a onclick="Sort('UserCompany');" href="javascript:void(0);">用车单位</a></HeaderTemplate>
                    		<ItemTemplate>
                        		<%#Eval("UserCompany")%></ItemTemplate>
                        	<ItemStyle Width="160px"/>
                		</asp:TemplateField>
			 					 				 					 			<asp:TemplateField>
                    		<HeaderTemplate>
                        		<a onclick="Sort('PeopleCount');" href="javascript:void(0);">人数</a></HeaderTemplate>
                    		<ItemTemplate>
                        		<%#Eval("PeopleCount")%></ItemTemplate>
                        	<ItemStyle Width="160px"/>
                		</asp:TemplateField>
			 					 				 					 			<asp:TemplateField>
                    		<HeaderTemplate>
                        		<a onclick="Sort('Driver');" href="javascript:void(0);">驾驶员</a></HeaderTemplate>
                    		<ItemTemplate>
                        		<%#Eval("Driver")%></ItemTemplate>
                        	<ItemStyle Width="160px"/>
                		</asp:TemplateField>
			 					 				 					 			<asp:TemplateField>
                    		<HeaderTemplate>
                        		<a onclick="Sort('Cause');" href="javascript:void(0);">用车事由</a></HeaderTemplate>
                    		<ItemTemplate>
                        		<%#Eval("Cause")%></ItemTemplate>
                        	<ItemStyle Width="160px"/>
                		</asp:TemplateField>
			 					 				 					 			<asp:TemplateField>
                    		<HeaderTemplate>
                        		<a onclick="Sort('SendTime');" href="javascript:void(0);">出发时间</a></HeaderTemplate>
                    		<ItemTemplate>
                        		<%#Eval("SendTime")%></ItemTemplate>
                        	<ItemStyle Width="160px"/>
                		</asp:TemplateField>
			 					 	            </Columns>
            <HeaderStyle CssClass="ThCenter"/>
        </asp:GridView></div>
        <YhmOA:Pager ID="gvShowPager" runat="server"/>
    </div>
    </div></div></div>
    </form>
</body>
</html>